﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ClassLibrary.BLL;

namespace WEB
{
    public partial class TrangChu : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

                //List<BLLSanPham> listsp = new List<BLLSanPham>();
                //listsp = new BLLSanPham().GetAll();
                CollectionPager1.PageSize = 9;
                CollectionPager1.DataSource = new BLLSanPham().GetAll();
                CollectionPager1.BindToControl = DataList1;
                DataList1.DataSource = CollectionPager1.DataSourcePaged;

         
        }
    }
}
